package com.lqq.entity;

import lombok.Data;
import org.hibernate.annotations.Type;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author lqq
 * @date 2019/4/16
 */
@Entity
@Table(name = "MY_FRIEND")
@Data
public class MyFriendEntity implements Serializable {

    private static final long serialVersionUID = -952799334936333550L;

    @EmbeddedId
    private MyFriendEntityId myFriendId;

    @Column(name = "REMARK",length = 16)
    private String remark;

    @Column(name = "slice", nullable = false)
    private Long slice;

    @Column(name = "ADD_DATE",nullable = false,columnDefinition = " datetime default now() ")
    private LocalDateTime addDate;


}